package com.floreo.shopping.service.impl;

import com.floreo.shopping.model.ShoppingList;
import com.floreo.shopping.service.IShoppingListService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author merzod
 */
public class ShoppingListService implements IShoppingListService {
    private List<ShoppingList> lists = new ArrayList<ShoppingList>();

    @Override
    public void registerShoppingList(ShoppingList list) {
        lists.add(list);
    }

    @Override
    public List<ShoppingList> getShoppingLists() {
        return lists;
    }
}
